<?php session_start(); ?>
<script>

$( "#startDate" ).datepicker({
      changeMonth: true,
	  dateFormat : "yy-mm-dd",
      numberOfMonths: 1,
      onClose: function( selectedDate ) {
        $( "#endDate" ).datepicker( "option", "minDate", selectedDate,"yy-mm-dd"  );
      }
    });
    $( "#endDate" ).datepicker({
      changeMonth: true,
	  dateFormat : "yy-mm-dd",
      numberOfMonths: 1,
      onClose: function( selectedDate ) {
        $( "#startDate" ).datepicker( "option", "maxDate", selectedDate);
      }
	});

</script>

<table  border="0">
<tr><td width="1000" height="550" >

			<table border=0 >
			<tr><td width=1000 height=50>
			<div align=center id="admintextinformation"><font color=white size=5>ADD INFORMATION</font></div>
			</td></tr>
			<tr><td height=450>
			
			<table>
			<tr><td width=300>


			<div align=left><font color=white size=3>TYPE</font><br />
            <select id="typeinf">
			<option>Information</option>
			<option>Meeting</option>
			<option>Homework</option>
			</select><br /><br />
			<div align=left><font color=white size=3>TITLE</font><br>
			<input id="title" type="text" placeholder="INFORMATION'S TITLE"><br><br>
			<div align=left><font color=white size=3>SUBJECT</font><br>
			<select id="subject" onchange="$('#subject').change(function() {var id = $(this).find(':selected')[0].id;$('#sub_id').val(id);});"></select><br><br>
			<div align=left><font color=white size=3>FACULTY</font></div>
			<select id="faculty">
			<option>Sci-Tech</option>
			<option>Software</option>
			<option>E-Commerce</option>
			<option>B-Computer</option>
			<option>IT</option>
			</select><br><br>
			<div align=left><font color=white size=3>DATE START</font></div>
			<input id="startDate" type="text" ><br><br>
			<div align=left><font color=white size=3>DATE END</font></div>
			<input id="endDate" type="text" ><br><br><br><br>
			<input style="display:none" id="tchuser" type="text" value="<?php echo $_SESSION['teacher_username'];?>" >

			</td><td width=600>
			<div align=left><font color=white size=3>DETAIL</font></div><br>
			<textarea id="detail"></textarea><br><br><br><br>
			</td></tr>
			</table>
			</center>

</td></tr>
<tr><td width=1000 height=50>
<center>
<input id="submit" type="button" value="SUBMIT" onclick="addInformationTeacher('<?php echo $_SESSION['teacher_username'];?>');">
<input id="cancle" type="button" value="CANCLE" onclick="memberShowScitechInformation();">
</center>
</td></tr>
</td></tr>
</table>
